package logic;

import java.util.ArrayList;
import java.util.Vector;

import sql.SuppliersOrdersDB;

public class SuppliersOrders {

	public ArrayList<String> getSuppliersOrders() {
		SuppliersOrdersDB sodb = new SuppliersOrdersDB();
		
		return sodb.getSupOrders();
	}

	public int openSupOrder(ArrayList<String> supOrderO, Vector<Vector<String>> dataSuppliersOrder) {
		   
		SuppliersOrdersDB sobdo = new SuppliersOrdersDB();
		return sobdo.openSupOrderDB(supOrderO,dataSuppliersOrder);
		
	}
	public ArrayList<String> getorderfromdb(String id) {
		   
		SuppliersOrdersDB sobdo = new SuppliersOrdersDB();
		return sobdo.watchorder(id);
		
	}
	public int updateorderstatus(ArrayList<String> ar,String permition) {
		   
		SuppliersOrdersDB sobdo = new SuppliersOrdersDB();
		return sobdo.updateorderstatusdb(ar,permition);
		
	}

}
